package com.woniuxy.project115.kaer.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author lyc
 * @since 2025年02月26日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("refund")
public class Refund implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 雪花生成
     */
    @TableId(value = "refund_id", type = IdType.AUTO)
    private Integer refundId;

    /**
     * 关联服务订单ID
     */
    @TableField("order_num")
    private String orderNum;

    /**
     * 退款原因
     */
    @TableField("refund_reason")
    private String refundReason;

    /**
     * 退款金额
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 退款审核状态0待审核, 1审核中, 2已同意, 3已拒绝, 4已退款
     */
    @TableField("refund_state")
    private Integer refundState;

    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("order_price")
    private BigDecimal orderPrice;
    @TableField("score")
    private Integer score;
    @TableField("remarks")
    private String remarks;


}
